<script setup>
defineProps({
    src: {
        type: String,
        required: true,
    },
})
const emit = defineEmits(['click'])
</script>

<template>
    <view class="relative flex max-w-full flex-shrink-0 rounded-md">
        <img
            :src="src"
            class="max-w-full rounded-md bg-zinc-300 md:max-w-lg"
            mode="aspectFill"
            loading="lazy"
            @click="emit('click')"
        />
    </view>
</template>
